"
" author:    QIAO Nan <qiaonancn@gmail.com>
" modified:  2011 Dec 02
"

"-- python --"

" completion
"let g:pythoncomplete_buffer_loading=1
"let g:pythoncomplete_classes_in_global=1

" file header
autocmd BufNewFile *.py call _python_head()

" map
nmap <leader>py :call _python_head()<cr>

"short snippits
iab _ext os.path.splitext(fn)[0]
iab _liner for line in open(fn).read().split('\n'):
iab _printwf print("write file {} finished!".format(fn))
